home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 60 / IOPROG_60.ISO / soft / c++ / gsl-1.1.1-setup.exe / {app} / src / multiroots / test_funcs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-05  |  3.6 KB  |  77 lines

  1. /* multiroots/test_funcs.h
  2.  * 
  3.  * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough
  4.  * 
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or (at
  8.  * your option) any later version.
  9.  * 
  10.  * This program is distributed in the hope that it will be useful, but
  11.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * General Public License for more details.
  14.  * 
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  */
  19.  
  20.  
  21. typedef void (*initpt_function) (gsl_vector * x);
  22.  
  23. extern gsl_multiroot_function_fdf rosenbrock;
  24. void rosenbrock_initpt (gsl_vector * x);
  25. int rosenbrock_f (const gsl_vector * x, void *params, gsl_vector * f);
  26. int rosenbrock_df (const gsl_vector * x, void *params, gsl_matrix * df);
  27. int rosenbrock_fdf (const gsl_vector * x, void *params,    gsl_vector * f, gsl_matrix * df);
  28.  
  29. extern gsl_multiroot_function_fdf roth;
  30. void roth_initpt (gsl_vector * x);
  31. int roth_f (const gsl_vector * x, void *params, gsl_vector * f);
  32. int roth_df (const gsl_vector * x, void *params, gsl_matrix * df);
  33. int roth_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  34.  
  35. extern gsl_multiroot_function_fdf brownscal;
  36. void brownscal_initpt (gsl_vector * x);
  37. int brownscal_f (const gsl_vector * x, void *params, gsl_vector * f);
  38. int brownscal_df (const gsl_vector * x, void *params, gsl_matrix * df);
  39. int brownscal_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  40.  
  41. extern gsl_multiroot_function_fdf powellscal;
  42. void powellscal_initpt (gsl_vector * x);
  43. int powellscal_f (const gsl_vector * x, void *params, gsl_vector * f);
  44. int powellscal_df (const gsl_vector * x, void *params, gsl_matrix * df);
  45. int powellscal_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  46.  
  47. extern gsl_multiroot_function_fdf powellsing;
  48. void powellsing_initpt (gsl_vector * x);
  49. int powellsing_f (const gsl_vector * x, void *params, gsl_vector * f);
  50. int powellsing_df (const gsl_vector * x, void *params, gsl_matrix * df);
  51. int powellsing_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  52.  
  53. extern gsl_multiroot_function_fdf wood;
  54. void wood_initpt (gsl_vector * x);
  55. int wood_f (const gsl_vector * x, void *params, gsl_vector * f);
  56. int wood_df (const gsl_vector * x, void *params, gsl_matrix * df);
  57. int wood_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  58.  
  59. extern gsl_multiroot_function_fdf helical;
  60. void helical_initpt (gsl_vector * x);
  61. int helical_f (const gsl_vector * x, void *params, gsl_vector * f);
  62. int helical_df (const gsl_vector * x, void *params, gsl_matrix * df);
  63. int helical_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  64.  
  65. extern gsl_multiroot_function_fdf dbv;
  66. void dbv_initpt (gsl_vector * x);
  67. int dbv_f (const gsl_vector * x, void *params, gsl_vector * f);
  68. int dbv_df (const gsl_vector * x, void *params, gsl_matrix * df);
  69. int dbv_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  70.  
  71. extern gsl_multiroot_function_fdf trig;
  72. void trig_initpt (gsl_vector * x);
  73. int trig_f (const gsl_vector * x, void *params, gsl_vector * f);
  74. int trig_df (const gsl_vector * x, void *params, gsl_matrix * df);
  75. int trig_fdf (const gsl_vector * x, void *params, gsl_vector * f, gsl_matrix * df);
  76.  
  77.